package shujia.day09;

import java.util.Random;

/*
    Random:
        public Random()

 */
public class RandomDemo1 {
    public static void main(String[] args) {
        Random random = new Random();

        //public int nextInt()
//        System.out.println(random.nextInt());

        //public int nextInt(int n)
        System.out.println(random.nextInt(100) + 1); // [0, 100)
    }
}
